import request from "@/utils/requestAdmin";


export function getOrderTrends(){
    return request.get('/order/trends')
}

export function getTopProducts(){
    return request.get('/order/top')
}

export function getOrderCategory(){
    return request.get('/order/category')
}

export function getTodayData(){
    return request.get('/order/today')
}
export function getOrderList (params) {
    return request({
      url: '/order/list',
      params: params
    })
  }

  //更新订单
export function updateOrderAll(form) {
    return request({
        url: '/order/updateAll',
        method: 'PUT',
        data:form
    })
}